package com.example.a.feign;

import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("service-b")
public interface ServiceBFeignClient {

    @PostMapping("/departments/delete")
    public Map<String, Object> delete(@RequestParam("id") Long id);

}
